# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# pyojo                                           Copyright (c) 2011 nabla.net
# ----------------------------------------------------------------------------

from pyojo.all import *

def GET(request):
    
    rs = dojo.request.script("LALA.js").then(
                                js.Function("data", "alert(data);"), 
                                js.Function("err", "alert(err);"))
    print js.get_code(rs)
    
    return js.Block(js.Comment("Request Script"),
                    #js.Require(rs),
                    rs,
                    
                    js.Function("test", js.Dojo("dom").requires("dojo/dom")))